#ifndef SEGMENTINVENTORY_TEST_H_INCLUDED
#define SEGMENTINVENTORY_TEST_H_INCLUDED

#include "SegmentInventory.h"
#include "SingleBufferManager.h"
#include "SegmentManager.h"
#include <assert.h>
#define SLEEP(ms) usleep( (ms) * 1000 )
#include <pthread.h>
#include <unistd.h>
#include <sys/time.h>
#include "DB.h"

class Hausaufgabe3_Test
{
public:
    static void createFile(const char* fileName, unsigned pageCount);
    static void test1();
    static void test2();
    static void test3();
    static void test4();
    static void test5();
    static void test6();
    static void *concSegTest(void* arg);
    static void bla(unsigned n, Segment& seg);
    static void test7();
    static const unsigned THREAD_COUNT = 10;
protected:
private:
};

#endif // SEGMENTINVENTORY_TEST_H_INCLUDED
